<%--
  Created by IntelliJ IDEA.
  User: XiangLang15078435014
  Date: 2021/11/1
  Time: 19:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <%
            application.setAttribute("title","JSP 动态网页新技术") ;
            application.setAttribute("author","方峻") ;
        %>

        <a href="5applicationB.jsp">显示已设定的application 数据内容 </a>

        <%
            Object title=application.getAttribute("title") ;
            Object author=application.getAttribute("author") ;
            if(title!=null){
                out.println("书名："+title.toString()) ;
                out.println("<br>") ;
                out.println("作者："+author.toString()) ;
            }else{
                out.println("无设定application数据  !!") ;
            }
        %>
    </body>
</html>
